import request from "./request";

export function login(params) {
    return request({
        url: '/login',
        method: 'post',
        data: params
    })
}
export function register(params) {
    return request({
        url: '/register',
        method: 'post',
        data: params
    })
}
export function selectAll() {
    return request({
        url: "/selectAll",
        method: 'post',
    })
}
export function updateUser(params) {
    return request({
        url: "/updateUser",
        method: "put",
        data: params
    })
}
export function ResetPassword(params) {
    return request({
        url: "/resetPassword",
        method: "put",
        data: params
    })
}
export function getLoginTime(params) {
    return request({
        url: "/getLoginTime",
        method: "post",
        data: params
    })
}

export function setLoginTime(params) {
    console.log(params);
    return request({

        url: "/setLoginTime",
        method: 'post',
        data: params
    })
}